<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>正则表达式</title>
</head>

<body>
	
</body>
<script>
	
	phone='13923614403';
	//arr=phone.match(/^139\d{8}$/i); //匹配到是数组，数组转布尔类型，都为真
	if(phone.match(/^139\d{8}$/i)){
		alert('电话号码正确');
	}else{
		alert('电话号码有误');
	}
</script>
</html>